/**
 * 
 * @param {*} response 
 * @param {*} message 
 */
function badRequest(response, message = '') {
    response.status = 400;
    response.body = {
        data: 'bad request',
        msg: message
    };
}

function internalError(response, message = '') {
    response.status = 500;
    response.body = {
        data: 'bad request',
        msg: message
    };
}

function ok(response, data = '') {
    response.status = 200;
    response.body = {
        data: data,
    };
}

module.exports = {
    internalError,
    badRequest,
    ok
};